package com.baobaotao.context;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.baobaotao.reflect.Car;

public class AnnotationApplicationContext {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext annot = new AnnotationConfigApplicationContext(Beans.class);
		Car car = annot.getBean("car",Car.class);
		System.out.println(car);
	}
}
